package com.meituan.catering.management.shop.biz.model.converter;

import com.meituan.catering.management.shop.api.http.model.request.UserContextHttpRequest;
import com.meituan.catering.management.shop.biz.model.common.UserContextBO;

/**
 * @Author:ale
 * @Date 2022/4/22 17:06
 * @Version 1.0
 */
public abstract class UserContextBOConverter {
    public static UserContextBO fromHttpRequest(UserContextHttpRequest request){
        UserContextBO userContext = new UserContextBO();
        userContext.setTenantId(request.getTenantId());
        userContext.setShopId(request.getShopId());
        userContext.setUserId(request.getUserId());
        userContext.setUserName(request.getUserName());
        return userContext;
    }
}
